package com.zl.basis.tip;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;

public class TipService extends Service {
    @Override
    public void onCreate() {
        super.onCreate();
        SoundUtil.setVolumeToMax(getApplicationContext());
    }


    public static void playSound(Context mContext, int rawId, int spaceTime) {
        playSound(mContext, rawId, 10, spaceTime);
    }

    public static void playSound(Context mContext, int rawId, int volume, int spaceTime) {
        SoundUtil.playSound(mContext, rawId, volume, spaceTime);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        SoundUtil.release();
    }


    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }
}
